/*
 * com_cute4j_swing_SwingIconSet.cpp  0.4.0 / 2010-12-23
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#include "com_cute4j_swing_SwingIconSet.h"

#include "QIconAdapter.h"

/*
 * Native implementation for: com.cute4j.swing.SwingIconSet
 */

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setSelectedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setSelectedIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1removeSelectedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer)
{
  qIconAdapterEngine->removeSelectedIcon();
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setPressedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setPressedIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1removePressedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer)
{
  qIconAdapterEngine->removePressedIcon();
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setDisabledIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setDisabledIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1removeDisabledIcon
  (JNIEnv *, jobject, jlong iconEnginePointer)
{
  qIconAdapterEngine->removeDisabledIcon();
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setDisabledSelectedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setDisabledSelectedIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1removeDisabledSelectedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer)
{
  qIconAdapterEngine->removeDisabledSelectedIcon();
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setRolloverIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setRolloverIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1removeRolloverIcon
  (JNIEnv *, jobject, jlong iconEnginePointer)
{
  qIconAdapterEngine->removeRolloverIcon();
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1setRolloverSelectedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer, jlong imagePointer)
{
  qIconAdapterEngine->setRolloverSelectedIcon(qIconImage);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_SwingIconSet__1removeRolloverSelectedIcon
  (JNIEnv *, jobject, jlong iconEnginePointer)
{
  qIconAdapterEngine->removeRolloverSelectedIcon();
}


